<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>	
<!DOCTYPE html>
<html>
<head>
<%@include file="../../common.jsp"%>
<title>
订单结算页
</title>
<script src="${staticPath}/js/jcarousellite.js" type="text/javascript"></script>
<script type="text/javascript" src="${staticPath}/js/app/order/order.js"></script>
<style type="text/css">
.weui_cell:before{
	border-top: none;
}
.gift-div{
	border-bottom: solid #d9d9d9 1px ;
	cursor: pointer;
}
.fl{
	float: left;
	margin-left: 5px;
}
.gift-checkbox{
	width: 5%;
}
.gift-image{
	width: 25%;
}
.gift-info{
	width: 60%;
}
.gift-info a{
	color:#666;
}
.voucher-div{
	padding: 14px 10px 15px;
    background: #fff;
    overflow: hidden;
    margin-top: 10px;
}
.weui_label.msg_label{
	width: auto;
	font-size: 14px;
}
.weui_input.msg_input{
	font-size: 12px;
}
</style>
</head>
<body ontouchstart>
<input type="hidden" id="returnAddressId" value="${addressId}" />
<input type="hidden" id="singleBuyFlag" value="${singleBuyFlag}" />
<script type="text/javascript">
function showOrderContent(){
	$.showLoading();
	var cartItemsCookie = $.cookie("cartItems");
	if(cartItemsCookie==undefined||"undefined"==cartItemsCookie||cartItemsCookie==null){
		cartItemsCookie="";
	}
	var token = $.cookie("token");
	if(token==undefined||"undefined"==token||token==null){
		token="";
	}
	$.ajax({
		url:appPath+"/order/showPreOrderInfo.html",
		dataType:'html',
		type:'post',
		data:{
			token: token,
			si:cartItemsCookie,
			addressId:$("#returnAddressId").val(),
			singleBuyFlag:$("#singleBuyFlag").val()
		},
		success:function(newData){
			$.hideLoading();
			var div = $(newData).find("#content_div");
			var appendHtml = $(div[0]).html();
			$('body').append(appendHtml);
			readyDo();
		},error:function(){
			$.hideLoading();
			$.alert("系统异常，请重试");
		}
	})
}
showOrderContent();
</script>
</body>
</html>